class Planete(object):
    #Creation matrice x*y initialise a 0
    def __init__(self, planeteMinerai, planetePopulation, planeteGaz, type, Etoile): 
        self.etoile=Etoile   
        self.minerai=planeteMinerai
        self.population=planetePopulation
        self.gaz=planeteGaz
        self.type=type
        #liste des batiments de la planete
        self.batiments=[]

    
    def getMinerai(self): 
        return self.minerai
        
    def getPopulation(self): 
        return self.population
    
    def getGaz(self): 
        return self.gaz
    
    def getType(self): 
        return self.type
    
    def getBatiment(self,noBatiment): 
        return self.batiments[noBatiment]
    
    def getListeBatiments(self,noBatiment): 
        return self.batiments
            
        
    def setMinerai(self,planeteMinerai): 
        self.minerai=planeteMinerai
       
    def setPopulation(self,planetePopulation): 
        self.population=planetePopulation

    
    def setGaz(self,planeteGaz): 
        self.gaz=planeteGaz
   
    def setType(self,type): 
        self.type=type
        
    def setBatiment(self,unBatiment): 
        self.batiments.append(unBatiment)
